package com.eyuai.netlibrary.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Allen on 2017/10/23.
 *
 * @author Allen
 *         <p>
 *         返回数据基类
 */

public class BaseData<T> {
    /**
     * 错误码
     */
    @SerializedName("errcode")
    private int errcode;
    /**
     * 错误描述
     */
    @SerializedName("errmsg")
    private String errmsg;

    /**
     * 数据
     */
    @SerializedName(value = "data",alternate = {"list"})
    private T data;

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}
